import request from '@/plugin/axios'

export function GetChapter (data) {
  return request({
    url: '/chapter/get',
    method: 'get',
    params: {
      spId: data.spId,
      ...data
    }
  })
}

export function AddChapter (data) {
  return request({
    url: '/chapter/add',
    method: 'post',
    params: {
      spId: data.spId,
      ...data
    }
  })
}

export function UpdateChapter (data) {
  return request({
    url: '/chapter/update',
    method: 'put',
    params: {
      spId: data.spId,
      ...data
    }
  })
}

export function DelChapter (data) {
  return request({
    url: '/chapter/del',
    method: 'put',
    params: {
      spId: data.spId,
      ...data
    }
  })
}
